<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>姓名案例_插值语法实现</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<!-- 准备好一个容器 -->
<div id="root">
    姓：<input type="text" v-model="first_name" placeholder=""><br/>
    名：<input type="text" v-model="last_name" placeholder=""><br/>
    <span>全名：{{first_name + '-' + last_name}}</span>
</div>
<script>
    new Vue({
        el: '#root',
        data: {
            first_name: 'Kris',
            last_name: 'Wu'
        },
        methods: {

        }
    })
</script>
</body>
</html>
